iconhelper: Move invalidation check
authorBenjamin Otte <otte@redhat.com>
Sun, 29 Nov 2015 18:45:52 +0000 (19:45 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 1 Dec 2015 23:29:29 +0000 (00:29 +0100)
commit751a1a9926561a8284789b7fb46bb0d3c1e20913
tree2034485937ff0a25e224261fe006674bbc63fe8d
parent3bacffd0635572005703b1f9f4df7dfd83cbcb67
iconhelper: Move invalidation check

Just do the invalidation check once, there's no need to do it in every
branch of the switch.

Also remove useless checks: These functions will not be called if we
already have a rendered surface.
gtk/gtkiconhelper.c